@echo off
REM Environment Check Batch File
REM Checks if development environment meets requirements

echo ========================================
echo        ENVIRONMENT CHECK TOOL
echo ========================================
echo.

echo Checking system environment...
echo.

REM Check PowerShell version
powershell -Command "Write-Host 'PowerShell Version:'; $PSVersionTable.PSVersion"

echo.
echo Running detailed environment check...
echo.

REM Run PowerShell check script
powershell -ExecutionPolicy Bypass -File "%~dp0check_env.ps1"

REM Check execution result
if %errorlevel% neq 0 (
    echo.
    echo ========================================
    echo ❌ ENVIRONMENT CHECK FAILED!
    echo Please check environment_report.txt for details
    echo ========================================
    pause
    exit /b 1
) else (
    echo.
    echo ========================================
    echo ✅ ENVIRONMENT CHECK PASSED!
    echo You can start project development
    echo ========================================
    pause
    exit /b 0
)